package xkp.lesson3;

public class Student extends Person{
	private int stuId;
	public Student() { 	
	
		System.out.println("I am Student");
	}

	public Student(int stuId) {
		int age = 200;
		this.age = age;
		this.stuId = stuId;
	}
	public Student(int age,String name,int stuId) {
		//调用父类构造方法
		super(age, name);
		/*
		 * setAge(age); setName(name);
		 */
		this.stuId = stuId;
	}
	public int getStuId() {
		return stuId;
	}
	public void setStuId(int stuId) {
		this.stuId = stuId;
	}
	//多出来的方法对是否为javabean没有影响
	public String sayInfo() {
		getAge();
		return super.sayInfo()+"-----"+this.stuId;
	}
}